package com.youdianda.service;

import com.youdianda.dto.SysUserDTO;
import com.youdianda.dto.SysUserPageDTO;
import com.youdianda.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youdianda.result.Result;

/**
* @author xliu
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2023-05-14 16:01:07
*/
public interface SysUserService extends IService<SysUser> {

    /**
     * 分页条件查询系统用户列表
     * @param sysUserPageDTO
     * @return
     */
    Result listSysUserPage(SysUserPageDTO sysUserPageDTO);

    /**
     * 根据id删除系统用户
     * @param id
     * @return
     */
    Result deleteRoleById(String id);

    /**
     * 系统用户添加
     * @param sysUserDTO
     * @return
     */
    Result addSysUser(SysUserDTO sysUserDTO);

    /**
     * 根据id查询系统用户详情
     * @param id
     * @return
     */
    Result getSysUserById(String id);

    /**
     * 系统用户修改
     * @param sysUserDTO
     * @return
     */
    Result updateSysUser(SysUserDTO sysUserDTO);
}
